package com.lfd.dubbpconsumer.service;

import com.lfd.dubboprovider.pojo.User;
import com.lfd.dubboprovider.service.MyProviderDubboService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class MyDubboConsumerService {
    @DubboReference
    private MyProviderDubboService myMyProviderDubboService;

    public User getUser(Integer id) {
     return myMyProviderDubboService.getUser(id);
    }
}
